home *** CD-ROM | disk | FTP | other *** search
-
- regc(0, "TFACTOR")
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
-
- pshader("
-
- ;#include <consts.psh>
- ps_1_1
-
- ;def c5, DAYCOLOR
- ;def c7, AMBIENT
-
- tex t0 ;texture (RGB - color, A<0-127> - Opacity, A<128-255> - Specular Mask)
- tex t1 ;Clouds
-
-
- mad_sat r0, 1-t1.a, c7, c7.a ;Clouds + Ambietn = Set Clouds
-
- mul r0.rgb, t0, r0 ;Tex * Set Clouds = Final
- +mov_x2_sat r0.a, t0.a ;extractione opacity mask
-
- mul r0.rgb, r0, c5 ;Day
- +mul r0.a, r0.a, c0.a ;Opacity Mask * Object blending
-
-
- ")
-
-